import request from "@/utils/request";

export function add(data) {
  return request({
    url: "sinohis/pension/checkin/interestgroup/createInterestGroup",
    method: 'post',
    data

  });

}

export function additem(data) {
  return request({
    url: "sinohis/pension/checkin/interestgroup/addInterestGroupMember",
    method: 'post',
    data

  });

}
export function addactive(data) {
  return request({
    url: "sinohis/pension/checkin/interestgroup/createInterestGroupActivityRecord",
    method: 'post',
    data

  });

}
export function reserve(data) {
  return request({
    url: "sinohis/pension/checkin/interestgroup/modifyInterestGroup",
    method: 'put',
    data

  });

}
export function leave(data) {
  return request({
    url: "sinohis/pension/checkin/interestgroup/quitInterestGroup",
    method: 'put',
    data

  });

}
export function reserveactive(data) {
  return request({
    url: "sinohis/pension/checkin/interestgroup/modifyInterestGroupActivityRecord",
    method: 'put',
    data

  });

}
export function search(params) {
  return request({
    url: "sinohis/pension/checkin/interestgroup/searchInterestGroup",
    method: 'get',
    params

  });

}

export function searchitem(params) {
  return request({
    url: "sinohis/pension/checkin/checkinmanager/searchCheckinInfoOfCondition",
    method: 'get',
    params

  });

}
export function searchactive(params) {
  return request({
    url: "sinohis/pension/checkin/interestgroup/searchInterestGroupActivityRecord",
    method: 'get',
    params

  });

}
export function searchelderlycondition (params) {
  return request({
    url: "/sinohis/pension/checkin/checkinmanager/searchCheckInInfoByElderly/"+params.elderlycondition ,
    method: "get",
    params

  });

}
